<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<base herf="<%=basePath%>">
        <link href="<%=basePath%>static2/assets/css/bootstrap.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="<%=basePath%>static2/css/style.css"/>       
        <link href="<%=basePath%>static2/assets/css/codemirror.css" rel="stylesheet">
        <link rel="stylesheet" href="<%=basePath%>static2/assets/css/ace.min.css" />
        <link rel="stylesheet" href="<%=basePath%>static2/assets/css/font-awesome.min.css" />
		
			<script src="<%=basePath%>static2/assets/js/jquery.min.js"></script>

		<script type="text/javascript">
			window.jQuery || document.write("<script src='<%=basePath%>static2/assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
		</script>

		

		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='<%=basePath%>static2/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
		</script>
		<script src="<%=basePath%>static2/assets/js/bootstrap.min.js"></script>
		<script src="<%=basePath%>static2/assets/js/typeahead-bs2.min.js"></script>
		<!-- page specific plugin scripts -->
		<script src="<%=basePath%>static2/assets/js/jquery.dataTables.min.js"></script>
		<script src="<%=basePath%>static2/assets/js/jquery.dataTables.bootstrap.js"></script>
        <script type="text/javascript" src="<%=basePath%>static2/js/H-ui.js"></script> 
        <script type="text/javascript" src="<%=basePath%>static2/js/H-ui.admin.js"></script> 
        <script src="<%=basePath%>static2/assets/layer/layer.js" type="text/javascript" ></script>
        <script src="<%=basePath%>static2/assets/laydate/laydate.js" type="text/javascript"></script>
         <script type="text/javascript">
			$(document).ready(function(){
				 
				 $.ajax({
						type:"POST",
						url:"../../web/getorders",
						//data:{userid:userid},
						//dataType:"json",
						success:function(data){
							//alert("ajax");
						}
					});
			});
			function member_del(obj,id){
				//alert("zhixingledianji");
				layer.confirm('确认要删除吗？',function(index){
				$.ajax({
					type:"POST",
					url:"../../manager/deleteOrder",
					data:{orderid:id},
					dataType:"json",
					success:function(data){
					}
				});
				$(obj).parents("tr").remove();
				layer.msg('已删除!',{icon:1,time:1000});
				});
			}
			
			</script>
<title>用户列表</title>
</head>

<body>
	<div class="page-content clearfix">
		<div id="Member_Ratings">
			<div class="d_Confirm_Order_style">
				<div class="search_style">
					<form action="${basePath }dimOrderList" class="input-group">
					<ul class="search_content clearfix">
						<li><label class="l_f">订单用户id</label><input name="order_dimSearch"
							type="text" class="text_add" placeholder="输入订单用户id"
							style="width: 400px" /></li>
						<%--<li style="width: 90px;"><button type="submit"
								class="btn_search">
								<i class="icon-search"></i>查询
							</button></li>--%>
					</ul>
						<input type="submit" value="查询">
					</form>
				</div>
				<div class="table_menu_list">
					<table class="table table-striped table-bordered table-hover"
						id="sample-table">
						<thead>
							<tr>
								<th width="25"><label><input type="checkbox"
										class="ace"><span class="lbl"></span></label></th>
								<th width="80">ID</th>
								<th width="100">用户手机号</th>
								<th width="120">用户id</th>
								<th width="150">收件地址</th>
								<th width="180">商品名称</th>
								<th width="250">单价</th>
								<th width="250">数量</th>
								<th width="250">实付款</th>
								<th width="250">时间</th>
								<th width="250">收件人</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${mdimorder}" var="order">
								<div>
									<tr>
										<td><label><input type="checkbox" class="ace"><span
												class="lbl"></span></label></td>
										<td>${order.orderids }</td>
										<td><u style="cursor: pointer" class="text-primary"
											onclick="member_show('张三','member-show.html','10001','500','400')">${order.phone }</u></td>
										<td>${order.userid }</td>
										<td>${order.target }</td>
										<td>${order.goodsname }</td>
										<td>${order.danjia }</td>
										<td>${order.shuliang }</td>
										<td>${order.shifukuan }</td>
										<td><fmt:formatDate value="${order.time }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
										<td>${order.shoujianrenname }</td>
										<td class="td-manage"> <a title="删除"
											href="javascript:;"
											onclick="member_del(this,'${order.orderids}')"
											class="btn btn-xs btn-warning"><i
												class="icon-trash  bigger-120"></i></a></td>
									</tr>
								</div>
							</c:forEach>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
	
</body>
</html>
